package com.logger.persistance.dao.imp;

import org.springframework.stereotype.Repository;

import com.logger.persistance.dao.TransactionStateDAO;
import com.logger.persistance.dao.imp.GenericDaoHibernate;
import com.logger.persistance.model.TransactionState;

@Repository("TransactionStateDao")
public class TransactionStateDaoImp extends GenericDaoHibernate implements TransactionStateDAO  {


   
    
    public TransactionStateDaoImp( ) {
        super(TransactionState.class);
        // TODO Auto-generated constructor stub
    }
   
    public void addTransactionState(TransactionState ts) {
    
        save(ts);
    }

    public void deleteTransactionState(Integer state_Id) {
        
//        TransactionState transactionState= new TransactionState();
//        GenericDaoHibernate genericDaoHibernate= new GenericDaoHibernate(transactionState.getClass()); 
//        genericDaoHibernate.remove(state_Id);
           super.remove(state_Id);  
        
    }
}
